﻿using System.Collections.Generic;
using Kam.Lagan.Examples.Atm.Bll.Ioc;
using Kam.Lagan.Examples.Atm.Contract.Bll;
using Kam.Lagan.Examples.Atm.Contract.Dal;
using Kam.Lagan.Examples.Atm.Contract.Model;
using Ninject;

namespace Kam.Lagan.Examples.Atm.Bll
{
    public class AccountBll : IAccountBll
    {
        private readonly StandardKernel _kernel;

        public AccountBll()
        {
            _kernel = new StandardKernel(new LiveBinding());
        }

        public IList<ICurrentAccount> Get()
        {
            var a = _kernel.Get<IRepository<ICurrentAccount>>();
            return a.Get();
        }
    }
}
